current Console.py API, because no bytes have come from it, but that's not a
failure -- an unpaused domain has no reason to output any more data. We need
to send a command to the domain before we can be sure whether it is alive or
dead, so move the FAIL call, allowing the console connection to throw
ConsoleError.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
try:
console = XmConsole(domain.getName(), historySaveCmds=True)
except ConsoleError, e:
- FAIL(str(e))
+ pass
try:
run = console.runCmd("ls")
except ConsoleError, e:
- pass
+ FAIL(str(e))
# Close the console
console.closeConsole()